package com.bbz.core.Ali;

public class TreeModel implements Comparable<Object> {

    private int random;

    public TreeModel(int random) {
        this.random = random;
    }

    public int getRandom() {
        return random;
    }

    public void setRandom(int random) {
        this.random = random;
    }

    @Override
    public int compareTo(Object object) {
        TreeModel t = (TreeModel) object;
        if (t.random < this.random) {
            return 1;
        } else {
            return -1;
        }
    }


}